
@echo off
for /F %%i in ('git rev-parse --short HEAD') do ( set commitid=%%i)
echo %commitid%

for /F %%i in ('git rev-parse --abbrev-ref HEAD') do ( set branch=%%i)
echo %branch%

pause